package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "JOB_STATUS")
public class JobStatus implements java.io.Serializable {

	private Long id;
	private String name;
	private String enable;
	/*private Set<PictureLogToDevice> pictureLogToDevices = new HashSet<PictureLogToDevice>(
			0);
	private Set<BackupToServer> backupToServers = new HashSet<BackupToServer>(0);
	private Set<StudentToDevice> studentToDevices = new HashSet<StudentToDevice>(
			0);
	private Set<VisitorToDevice> visitorToDevices = new HashSet<VisitorToDevice>(
			0);
	private Set<UpgradeToDevice> upgradeToDevices = new HashSet<UpgradeToDevice>(
			0);
	private Set<TimingToDevice> timingToDevices = new HashSet<TimingToDevice>(0);
	private Set<TimeArrayToDevice> timeArrayToDevices = new HashSet<TimeArrayToDevice>(
			0);
	private Set<ParamServerToDevice> paramServerToDevices = new HashSet<ParamServerToDevice>(
			0);
	private Set<CardLogToDevice> cardLogToDevices = new HashSet<CardLogToDevice>(
			0);*/

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ENABLE", length = 1)
	public String getEnable() {
		return this.enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	/*@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<PictureLogToDevice> getPictureLogToDevices() {
		return this.pictureLogToDevices;
	}

	public void setPictureLogToDevices(
			Set<PictureLogToDevice> pictureLogToDevices) {
		this.pictureLogToDevices = pictureLogToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<BackupToServer> getBackupToServers() {
		return this.backupToServers;
	}

	public void setBackupToServers(Set<BackupToServer> backupToServers) {
		this.backupToServers = backupToServers;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<StudentToDevice> getStudentToDevices() {
		return this.studentToDevices;
	}

	public void setStudentToDevices(Set<StudentToDevice> studentToDevices) {
		this.studentToDevices = studentToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<VisitorToDevice> getVisitorToDevices() {
		return this.visitorToDevices;
	}

	public void setVisitorToDevices(Set<VisitorToDevice> visitorToDevices) {
		this.visitorToDevices = visitorToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<UpgradeToDevice> getUpgradeToDevices() {
		return this.upgradeToDevices;
	}

	public void setUpgradeToDevices(Set<UpgradeToDevice> upgradeToDevices) {
		this.upgradeToDevices = upgradeToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<TimingToDevice> getTimingToDevices() {
		return this.timingToDevices;
	}

	public void setTimingToDevices(Set<TimingToDevice> timingToDevices) {
		this.timingToDevices = timingToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<TimeArrayToDevice> getTimeArrayToDevices() {
		return this.timeArrayToDevices;
	}

	public void setTimeArrayToDevices(Set<TimeArrayToDevice> timeArrayToDevices) {
		this.timeArrayToDevices = timeArrayToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<ParamServerToDevice> getParamServerToDevices() {
		return this.paramServerToDevices;
	}

	public void setParamServerToDevices(
			Set<ParamServerToDevice> paramServerToDevices) {
		this.paramServerToDevices = paramServerToDevices;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "jobStatus")
	public Set<CardLogToDevice> getCardLogToDevices() {
		return this.cardLogToDevices;
	}

	public void setCardLogToDevices(Set<CardLogToDevice> cardLogToDevices) {
		this.cardLogToDevices = cardLogToDevices;
	}*/
}